package com.example.externalstoreage.database;

import androidx.room.Database;
import androidx.room.RoomDatabase;

import com.example.externalstoreage.dao.BookDao;
import com.example.externalstoreage.dao.UserDao;
import com.example.externalstoreage.entity.BookInfo;
import com.example.externalstoreage.entity.User;

@Database(entities = {BookInfo.class, User.class}, version = 1,exportSchema = false)
public abstract class BookDatabase extends RoomDatabase {
    // 获取该数据库中对应表的持久化对象（DAO）
    public abstract BookDao bookDao();

    public abstract UserDao userDao();
}
